package mysql

import "gorm.io/gorm"

type User struct {
	gorm.Model
	Account   string `gorm:"type:varchar(30);not null"`
	Password  string `gorm:"type:varchar(32);not null"`
	NickName  string `gorm:"type:varchar(30);not null"`
	HeadImage string `gorm:"type:varchar(500);not null"`
}

type Shop struct {
	gorm.Model
	ShopName string `gorm:"type:varchar(30);not null"`
	Address  string `gorm:"type:varchar(500);not null"`
	UserId   int    `gorm:"int;not null"`
}
